Make menu activation work again
authorMatthias Clasen <mclasen@redhat.com>
Sat, 6 Apr 2019 00:20:21 +0000 (00:20 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 6 Apr 2019 00:20:21 +0000 (00:20 +0000)
commit2deb0e7e1daf3494e998bc6d3264075ccb12c91c
treeadca0976e5db0c4fdaa240b2e6385c26c29c8bf0
parentcb3d61bb0e305c759fa429e509eb85eb7752b4a7
Make menu activation work again

After we stopped untranslatable delivering events, menus stopped
working 'the second time'. After some painful debugging, it appears
that this is caused by the menushell code deliberately grabbing
on the menubar *after* grabbing on the menu, causing events to
be deleivered to the wrong toplevel. This did not use to matter,
but now we drop these events.

Absent a more thorough rewrite of menus, just don't grab on
the menubar. This makes menu activation work again and does not
appear to have ill effects, on either Wayland or X.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1796
gtk/gtkmenushell.c